package com.example.uart;
import android.util.Log;
public class Linuxc {
	static{
		try{
			System.loadLibrary("uart");
			Log.i("JIN","Trying to load libuart.so");
		}
		catch(UnsatisfiedLinkError ule){
			Log.e("JIN", "WARNING:could not load libuart.so");
		}
	}
	public static native int  openUart(int i);
	public static native void closeUart(int i);
	public static native int setUart(int i);
	public static native int sendMsgUart(char msg[]);
	public static native String receiveMsgUart();
}
